package com.jsmtr.rms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

@Entity
@Table(name = "CMS_Content")
public class CMSContent {

    @Id
    @Column(nullable = false, length = 50)
    private String id; // 内容ID

    @Column(nullable = false, length = 50)
    private String nodeid; // 栏目ID

    @Column(nullable = false, length = 50)
    private String nodename; // 栏目名称

    @Column(nullable = false, length = 500)
    private String title; // 内容标题

    @Column(nullable = false)
    private byte[] cont; // 内容

    @Column(nullable = false, length = 10)
    private String isdis; // 是否下线(正常、已下线)

    @Column(nullable = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addtime; // 添加时间

    @Column(nullable = false, length = 50)
    private String adduid; // 添加人ID

    @Column(nullable = false, length = 50)
    private String adduname; // 添加人姓名

    @Column(nullable = false, length = 50)
    private String cmstype; //CMS类型

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIsdis() {
        return isdis;
    }

    public void setIsdis(String isdis) {
        this.isdis = isdis;
    }

    public String getNodeid() {
        return nodeid;
    }

    public void setNodeid(String nodeid) {
        this.nodeid = nodeid;
    }

    public String getNodename() {
        return nodename;
    }

    public void setNodename(String nodename) {
        this.nodename = nodename;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public byte[] getCont() {
        return cont;
    }

    public void setCont(byte[] cont) {
        this.cont = cont;
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public String getAdduid() {
        return adduid;
    }

    public void setAdduid(String adduid) {
        this.adduid = adduid;
    }

    public String getAdduname() {
        return adduname;
    }

    public void setAdduname(String adduname) {
        this.adduname = adduname;
    }

    public String getCmstype() {
        return this.cmstype;
    }

    public void setCmstype(String cmstype) {
        this.cmstype = cmstype;
    }
}